import {StackNavigator} from 'react-navigation'
import App from '../App'
import FlatListDemo from '../FlatListDemo/FlatList'
import NavigationHome from '../navigationDemo/NavigationHome'
import Page1 from '../navigationDemo/Page1'
import Page2 from '../navigationDemo/Page2'
import Page3 from '../navigationDemo/Page3'


export default AppNavigator = StackNavigator({
    App: {
        screen: App
    },
    FlatListDemo: {
        screen: FlatListDemo,
        navigationOptions:{
            title: "FlatListDemo"
        }
    },
    NavigationHome: {
        screen: NavigationHome,
        navigationOptions:{
            title: 'NavigationHome'
        }
    },
    Page1: {
        screen: Page1
    },
    Page2: {
        screen: Page2
    },
    Page3: {
        screen: Page3
    }
},{
    initialRouteName:'FlatListDemo'
})